switch (tagName)      {
  case 'XXX':
       case 'THEAD':

    default:
         depth = undefined
       }

     switch ((tagName)) {
  case 'XXX':

    default:
         depth = undefined
       }